Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache lix installer #8

Merged
merged 3 commits into from
Feb 28, 2025
Merged

Conversation

antifuchs
Copy link
Contributor

@antifuchs antifuchs commented Feb 28, 2025

This PR attempts to address #4 by replicating the functionality of the download-and-run installer script (as it advises users do), adding etag cache invalidation.

It then uses the "actions/cache" action to store the etag value and the lix installer the GHA cache.

@antifuchs antifuchs force-pushed the cache-lix-installer branch 3 times, most recently from 46fa555 to 228662a Compare February 28, 2025 14:59
This uses curl's --etag-save and --etag-compare functions to see if we need a new installer and only then download it.
@samueldr
Copy link
Owner

please rebase the f commits out of the history :) using the web interface to unstick the testing quickly.

@antifuchs
Copy link
Contributor Author

My cache entries look like this now:
image

I think the cache action will update the cache entries whenever the etag changes, but I'm not sure we can test this in any way ahead of time.

@antifuchs antifuchs marked this pull request as ready for review February 28, 2025 19:41
@samueldr samueldr merged commit 8dc19fb into samueldr:latest Feb 28, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants